import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations.js'
import actions from './actions.js'
import getters from './getters.js'
import axiosIntercepor from './axios.inteceptor.js'

Vue.use(Vuex)

/* 项目全局State */
const state = {
  imgUrl: '',
  transferUrl: 'https://prem2.yaolaivip.com',
  noScrollFlag: false
}

axiosIntercepor.interceptors()
/* Store实例 */
export default new Vuex.Store({
  state,
  getters,
  actions,
  mutations
})
